//==================================================================
/// horizon.h
///
/// Created by Davide Pasca - 2009/10/5
/// See the file "license.txt" that comes with this project for
/// copyright info. 
//==================================================================

#ifndef HORIZONT_H
#define HORIZONT_H

#include "sprite.h"

//==================================================================
//==================================================================
class horizon
{
public:
	int				_bot_r, _bot_g, _bot_b;
	int				_top1_col, _bot_col;
	float			_x;
	int				_y, _w, _h;
	adel<sprite>	mpoSkySprt;

public:
	//==================================================================
	horizon( int w, int h );

	void Resize( U32 w, U32 h );

	//==================================================================
	void to15bits( image &img );

	//==================================================================
	void paint( graphics &g );

	//==================================================================
	void x_set( float x )
	{
		_x = x;
	}

	//==================================================================
	void y_set( float y )
	{
		_y = y;
	}

	//==================================================================
	void create_sky( const color &col1, const color &col2 );

	//==================================================================
	void colors_set( const color &top1, const color &top2, const color &bot );

	//==================================================================
	void sky_picture_set( const DStr &picname );
};

#endif
